#include <iostream>
#include <opencv2/opencv.hpp>
#include "../libUVC/include/UVCCamera.hpp"
using namespace wmj;
int main() {
    UVCCamera Camera("/home/outbreak/WMJ/UVCCamera/libUVC/UsbCapture.yaml");
    cv::Mat Test;
    Camera.infoPrint();
    while (1) {
        Camera >> Test;
        if (Test.empty()) {
        } else {
            cv::resize(Test, Test, cv::Size(1280, 720));
            cv::imshow("Test", Test);
        }
        if (cv::waitKey(10) == 'q') {
            break;
        }
    }
}